module.exports = {
  getFont(params, res) {
    try {
      let tmpData = require("../public/fonts/" + params.fontName + ".json");
      //params.fontName : FZYTK.TTF, msyh.ttf
      res.json({ status: 1, data: tmpData });

    } catch (error) {
      res.json({ status: -1, data: { code: -1, message: "get font error" } });
    }
  }
}